package com.wman;

import android.os.Bundle;
import android.view.View;

import com.wman.sheep.interf.NoDoubleClickListener;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    boolean isUse = false;
    private MaterialEditText mEditText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mEditText = findViewById(R.id.edittext);

        findViewById(R.id.button).setOnClickListener(new NoDoubleClickListener() {
            @Override
            protected void onNoDoubleClick(View v) {
                mEditText.setUseFloatingLable(isUse);
                isUse = !isUse;
            }
        });
    }
}
